package com.knowledge.listenter.event;

import lombok.Getter;
import org.springframework.context.ApplicationEvent;

/**
 * @author zzz
 * @title: CacheEvent
 * @projectName knowledge-api
 * @description: TODO
 * @date 2022-03-05 19:11
 */
@Getter
public class CacheEvent  extends ApplicationEvent {

    private Long userId;
    private String tokenId;

    public CacheEvent(Object source, Long userId, String tokenId) {
        super(source);
        this.userId = userId;
        this.tokenId = tokenId;
    }
}
